//
//  HomeViewController.m
//  tristana
//
//  Created by 李康 on 2021/1/5.
//  Copyright © 2021 李康. All rights reserved.
//

#import "HomeViewController.h"
#import "InventViewController.h"
#import "AddRecordViewController.h"
#import "MessageDetailViewController.h"
#import "ReportVC.h"
#import "HeTongVC.h"


@interface HomeViewController ()

@end

@implementation HomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    self.edgesForExtendedLayout = UIRectEdgeNone;
//    self.extendedLayoutIncludesOpaqueBars = YES;
    
}

- (IBAction)inventClick:(id)sender {
    InventViewController *vc = [[InventViewController alloc]init];
    vc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)addJietiaoClick:(id)sender {
    AddRecordViewController *vc = [[AddRecordViewController alloc]init];
    vc.titleString = @"添加借条";
    vc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)addQiantiaoClick:(id)sender {
    AddRecordViewController *vc = [[AddRecordViewController alloc]init];
    vc.titleString = @"添加欠条";
    vc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)hetongClick:(id)sender {
    HeTongVC *vc = [[HeTongVC alloc] init];
    self.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
    self.hidesBottomBarWhenPushed = NO;
}

- (IBAction)feedback:(id)sender {
    ReportVC *vc = [[ReportVC alloc] init];
    self.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
    self.hidesBottomBarWhenPushed = NO;
    
}

- (IBAction)normolQuesClick:(id)sender {
    MessageDetailViewController *vc = [[MessageDetailViewController alloc]init];
    vc.contentUrl = @"text1";
    vc.title = @"常见问题";
    vc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
}

@end
